package com.db.springcloud;


import com.db.loadbalanceconfig.CustomLoadBalanceConfig;
import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableFeignClients(basePackages = {"com.db.springcloud"})
@EnableHystrix
@LoadBalancerClients(
        @LoadBalancerClient(name = "SPRINGCLOUD-PROVIDER-USER", configuration = CustomLoadBalanceConfig.class)
)
public class FeignUserConsumer_9002 {
    public static void main(String[] args) {
        SpringApplication.run(FeignUserConsumer_9002.class,args);
    }

}
